@echo off
title ray-boot clean

echo "----------------------------init start----------------------------"

setlocal enabledelayedexpansion
set "currentPath=%~dp0"
set "rootPath=!currentPath:~0,-13!"

set appRootDir=%rootPath%

set MVN_PACKAGE= mvn clean package -Dmaven.test.skip=true -s "F:\Maven\apache-maven-3.8.6-bin\apache-maven-3.8.6\conf\settings.xml"
set MVN_INSTALL= mvn clean install -Dmaven.test.skip=true -s "F:\Maven\apache-maven-3.8.6-bin\apache-maven-3.8.6\conf\settings.xml"

echo "----------------------------init end ----------------------------"
echo "--------------------------install start--------------------------"

cd /d %appRootDir%
call %MVN_INSTALL%

echo "-------------------------- install end --------------------------"
echo "-------------------------- install end --------------------------"
echo "-------------------------- install end --------------------------"

pause;